/**
 * Copyright (c) 2012, Camelot and/or its affiliates. All rights reserved.
 * Camelot PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.camelot.ccr.system.dao;

import java.util.List;

import com.camelot.ccr.global.dao.GenericDaO;
import com.camelot.ccr.system.persistence.Sponsor;
import com.camelot.ccr.system.persistence.SponsorTeam;

/**
 * <pre>
 * <赞助商车队关系>
 * </pre>
 * @author Liu Jun
 * @version V0.1, 2014-5-20 下午10:28:23
 */
public interface SponsorTeamDao extends GenericDaO<SponsorTeam, String> {
	
	/**
	 * <pre>
	 * <批量删除指定车队下的赞助商>
	 * </pre>
	 * @param teamId
	 * @author Liu Jun, 2014-5-24 下午2:12:58
	 */
	void delSponsorTeam(String teamId);

	/**
	 * <pre>
	 * <配置赞助商和车队关系>
	 * </pre>
	 * @param sponsorIds
	 * @param teamId
	 * @author Liu Jun, 2014-5-24 下午2:21:07
	 */
	void saveBatchSponsorTeam(String[] sponsorIds,String teamId);
	/**
	 * <pre>
	 * <根据车队查询出所有的赞助商>
	 * </pre>
	 * @param teamId
	 * @return
	 * @author Liu Jun, 2014-5-24 下午8:25:36
	 */
	List<Sponsor> getSponsorTeamList(String teamId);
	
}
